#!/usr/bin/env bash
set -ex
cd ~/Dropbox/Directory/Analysis

chmod u+r+x ./LinkOrgs_EmpiricalExamples_Master.R

ulimit -a 
parallel --number-of-cpus
parallel --number-of-cores
parallel --number-of-threads
parallel --number-of-sockets

# main LinkOrgs analysis has 32 combinations
parallel --jobs 1 --joblog ./logfile_LinkOrgs.txt --load 100% --delay 2 'Rscript --vanilla ./LinkOrgs_EmpiricalExamples_Master.R {}' ::: $(seq 1 32)

# note:
#parallel --jobs X ''  ::: {1..6} --> X number of jobs (0 denominated) doing jobs 1 to 6
